<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$routes['default_controller'] = "index";
$routes['404_override'] = '';

//custom routes you find detail in system/router.php can use withe method _set_overrides($route)

//find SEO in base de donnee
/*
$CI = new controller;
$CI->database();

//if the link is exist .html => product

if(strpos($URI->uri_string, '.html')===false){
	
	//find on category
	$function='index';
	$uri_string=$URI->uri_string;
	$keyval=array('page','tag','search');
	foreach ($keyval as $key){
		if(in_array($key,$URI->segments)){
			$function=$key;
			$temp=explode("/$key", $uri_string);
			$uri_string=$temp[0];
			$countCategory=count(explode('/',$uri_string));
			$URI->keyval=$uriKeyval=$URI->uri_to_assoc($countCategory+1);
			break;
		}
	}
	$query=$CI->db->select('*')->from('category')->where(array('link' =>$uri_string))->get();

	if ($query->num_rows){
		$result=$query->result();
		$routes['directory']='category';
		$routes['controller']='index';
		$routes['function']=$function;
		$routes['keyval']=array();
		if(isset($uriKeyval))
			$routes['keyval']=$uriKeyval;
		$routes['keyval']['id']=$result[0]->id;
		array_unshift($URI->rsegments,$result[0]->id);
		
	}
}
unset($CI);*/
/* End of file routes.php must out $route */
/* Location: ./application/config/routes.php */